package com.bangdream.michelia.view.fragment.main.home;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;

import com.bangdream.michelia.R;
import com.bangdream.michelia.presenter.base.BasePresenter;
import com.bangdream.michelia.view.fragment.currency.BaseFragment;

/**
 * @date on 2018/6/19 22:43
 * @email 909732184@qq.com
 * 首页培训状态完成 待开始数量的fragment
 */
public class HomeTrainNmuber extends BaseFragment {
    private View view;
    TextView tvNumber1, tvNumber2;
    @Nullable
    @Override
    public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
        view = inflater.inflate(R.layout.home_train_center_info_number,container,false);
        tvNumber1 = view.findViewById(R.id.tvNumber1);
        tvNumber2 = view.findViewById(R.id.tvNumber2);

        if(getArguments()!=null){
            String numberList = getArguments().getString("numberList");
            if(numberList!=null){
                String[] split = numberList.split(",");
                tvNumber1.setText(split[0]);
                tvNumber2.setText(split[1]);
            }
        }
        return view;
    }

    @Override
    public BasePresenter createPresenter() {
        return null;
    }
}
